# 获取当前日期和时间

import datetime

current_time = datetime.datetime.now()
print(current_time, type(current_time))

str_time = current_time.strftime("%Y-%m-%d %H:%M:%S")
print("str_time", str_time)


print(current_time.year)
print(current_time.month)
print(current_time.day)
print(current_time.hour)
print(current_time.minute)
print(current_time.second)



